package com.biz.primus.model.promotion.vo.resp;

import com.biz.primus.model.promotion.vo.OrderPromotionDetailVo;
import com.google.common.collect.Lists;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.List;
import lombok.Getter;
import lombok.Setter;

/**
 * 订单促销信息返回项Vo
 *
 * @author david-liu
 */
@Getter
@Setter
@ApiModel(value = "订单促销项模型")
public class OrderPromotionRespItemVo implements Serializable {
    private static final long serialVersionUID = 3009951828994584126L;

    /**
     * 参数标识(和传入的参数标识保持一致, 用于标识返回结果参数定位)
     */
    @ApiModelProperty(value = "参数标识(和传入的参数标识一致)", required = true)
    private String paramSeq;


    /**
     * 订单促销详情
     */
    @ApiModelProperty(value = "订单促销详情")
    private List<OrderPromotionDetailVo> details = Lists.newArrayList();

    /**
     * 添加详情Vo到订单促销详情列表
     *
     * @param detailVo 详情Vo
     */
    public void append2Details(OrderPromotionDetailVo detailVo) {
        this.details.add(detailVo);
    }
}
